package entity

import "time"
type DeviceType int

const (
	Server        DeviceType = 1  // 服务器
	Switch        DeviceType = 2  // 交换机
	PDU           DeviceType = 3  // PDU
	BroadcastController DeviceType = 4  // 播控器
	NTP           DeviceType = 9  // NTP
	WorkStation   DeviceType = 10 // 工作站
	WiFiDevice          DeviceType = 51 // WiFi
	VehicleGroundRadio  DeviceType = 52 // 车地无线
	VehicleDumpRadio    DeviceType = 53 // 车地无线转储
	BroadcastEquipment  DeviceType = 54 // 编播设备
	NetworkDevice       DeviceType = 99 // 网络设备
)
type NetworkState struct {
	ID         int64         `gorm:"column:id;primary_key"`
	HostName   string        `gorm:"column:host_name"`
	Status     NetWorkStatus `gorm:"column:status"`
	DateStr    string        `gorm:"column:date_str"`
	CreateTime time.Time     `gorm:"column:create_time"`
	Type       DeviceType    `gorm:"column:type"`
}
